package com.k.kpp.config.ftp;

/**
 * @author kivil
 */

public class FtpClientProperties {
    private String host;
    private Integer port;
    private String username;
    private String password;

    private boolean passiveMode;

    private String encoding = "UTF-8";
    private Integer connectTimeout;
    private Integer dataTimeout;
    private Integer bufferSize = 1024;
    private Integer keepAliveTimeout = 0;
    private Integer transferFileType = 0;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isPassiveMode() {
        return passiveMode;
    }

    public void setPassiveMode(boolean passiveMode) {
        this.passiveMode = passiveMode;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public Integer getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(Integer connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public Integer getDataTimeout() {
        return dataTimeout;
    }

    public void setDataTimeout(Integer dataTimeout) {
        this.dataTimeout = dataTimeout;
    }

    public Integer getBufferSize() {
        return bufferSize;
    }

    public void setBufferSize(Integer bufferSize) {
        this.bufferSize = bufferSize;
    }

    public Integer getKeepAliveTimeout() {
        return keepAliveTimeout;
    }

    public void setKeepAliveTimeout(Integer keepAliveTimeout) {
        this.keepAliveTimeout = keepAliveTimeout;
    }

    public Integer getTransferFileType() {
        return transferFileType;
    }

    public void setTransferFileType(Integer transferFileType) {
        this.transferFileType = transferFileType;
    }

    @Override
    public String toString() {
        return "FtpClientProperties{" +
                "host='" + host + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", passiveMode=" + passiveMode +
                ", encoding='" + encoding + '\'' +
                ", connectTimeout=" + connectTimeout +
                ", dataTimeout=" + dataTimeout +
                ", bufferSize=" + bufferSize +
                ", keepAliveTimeout=" + keepAliveTimeout +
                ", transferFileType=" + transferFileType +
                '}';
    }
}
